/**
 * 
 */
package com.munoor.dalai.client.misc;

import com.munoor.dalai.client.model.User;

/**
 * @author Osho
 *
 */
public class Marshaller {
		public static String marshallUser (User user){
			StringBuilder dataBuffer = new StringBuilder();
			//{"username":"User1111","password":"ABCDEF", "email":"me@you.com", "lastScan":1000110, "userType":1}
			dataBuffer.append("{\"username\":\"").append(user.getUsername()).append("\",\"password\":\"").append(user.getPassword()).append("\"}");
			return dataBuffer.toString();
		}
}
